package main

import (
	"flag"
	"gindemo/common/global"
	"gindemo/common/settings"
)

func main() {
	configPath := flag.String("c", "config.yaml", "配置文件路径，默认使用当前目录下的config.yaml")
	g := global.NewGinService()
	err := g.SetUpSetting(*configPath)
	if err != nil {
		g.Logger.Panic(err)
	}
	settings.DefaultAppConfig = g.Conf
	g.Run()
}
